/**
 * 北京中流科技有限公司 版权所有
 * http://www.chinasoa.com.cn
 */
package cn.com.chinasoa.archive.runtime.util;

import java.util.Calendar;

/**
 * @author 刘洋(liuyang@chinasoa.com.cn)
 * 2007-8-3下午08:11:56
 */
public class CalendarUtil {
	public static String getTime(Calendar tCalendar){
		String aTime="";
		int m=tCalendar.get(Calendar.MONTH);
		int y=tCalendar.get(Calendar.YEAR);		
		int d=tCalendar.get(Calendar.DAY_OF_MONTH);
		int h=tCalendar.get(Calendar.HOUR_OF_DAY);
		int t=tCalendar.get(Calendar.MINUTE);
		aTime= y+"年"+(m+1)+"月"+d+"日 ";
		if(h<10)aTime=aTime+"0"+h;
		else aTime=aTime+h;
		if(t<10)aTime=aTime+":0"+t;
		else aTime=aTime+":"+t;
		return aTime;
	}
}
